#pragma once

#include <cstdint>
#include <string>

struct Driver {
    enum class DriverType : u_int8_t { Enterance, Admin, Navigation };
    constexpr static const char *STATUS[] = {"enterance", "admin",
                                             "navigation"};
    std::string id;
    std::string driver_name;
    DriverType driver_type;

    static int get_status(std::string s) {
        for (int i = 0; i < 3; i++) {
            if (s == STATUS[i])
                return i;
        }
        return -1;
    }
};
